﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="PlaneTicket.aspx.cs" Inherits="ServicesSheet_PlaneTicket" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="WEmp" runat="server" selectalias="Usasdb" selectcommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)">
    </infolight:webdatasource>
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        allowadd="True" allowdelete="True" allowprint="True" allowupdate="True" alwaysclose="False"
        autoapplyforinsert="False" autorecordlock="False" autorecordlockmode="NoneReload"
        cachedataset="False" commandname="" datamember="Services_PlaneTicket" eof="True"
        keyvalues="" lastindex="-1" marker="'" masterdatasource="" packetrecords="100"
        quoteprefix="[" quotesuffix="]" remotename="ServiceSheet.Services_PlaneTicket"
        selectcommand="" tablename="">
    </infolight:webdatasource>
    <infolight:webdefault id="wdServices_PlaneTicket" runat="server" datamember="Services_PlaneTicket"
        datasourceid="Master">
        <fields>
                    <InfoLight:DefaultFieldItem DefaultValue="0" FieldName="ptId" />
                    <InfoLight:DefaultFieldItem FieldName="EmpId" DefaultValue="GetEmpId()" />
                    <InfoLight:DefaultFieldItem DefaultValue="_ServerToDay" FieldName="ApDate" />
                    <InfoLight:DefaultFieldItem DefaultValue="_ToDay" FieldName="OutDate" />
                    <InfoLight:DefaultFieldItem DefaultValue="GetDepartmentName()" FieldName="DepartmentName" />
                </fields>
    </infolight:webdefault>
    <FLTools:FLWebNavigator ID="FLWebNavigator1" runat="server" BindingObject="WebFormView1"
        CtlHeight="25" ShowDataStyle="FormViewStyle" StatusStrip="WebStatusStrip1" AutoSubmit="True"
        AnyQueryID="FLWebNavigator1" CssClass="NavigatorBar" Width="100%">
        <NavControls>
            <infolight:controlitem controlname="Add" controltext="add" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Add3_C.gif" imageurl="../Image/UIPics/Add_C.gif"
                mouseoverimageurl="../Image/UIPics/Add2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Update" controltext="update" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Edit3_C.gif" imageurl="../Image/UIPics/Edit_C.gif"
                mouseoverimageurl="../Image/UIPics/Edit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Delete" controltext="delete" controltype="Image"
                controlvisible="True" disenableimageurl="../Image/UIPics/Delete3_C.gif" imageurl="../Image/UIPics/Delete_C.gif"
                mouseoverimageurl="../Image/UIPics/Delete2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Apply" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Apply3_C.gif" imageurl="../Image/UIPics/Apply_C.gif"
                mouseoverimageurl="../Image/UIPics/Apply2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Abort" controltype="Image" controlvisible="True"
                disenableimageurl="../Image/UIPics/Abort3_C.gif" imageurl="../Image/UIPics/Abort_C.gif"
                mouseoverimageurl="../Image/UIPics/Abort2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Query" controltext="query" controltype="Image"
                controlvisible="True" disenableimageurl="../image/uipics/Query3_C.gif" imageurl="../image/uipics/Query_C.gif"
                mouseoverimageurl="../image/uipics/Query2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Submit" controltext="submit" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Submit_C.gif"
                mouseoverimageurl="../image/uipics/Submit2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Approve" controltext="approve" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../Image/UIPics/Approve_C.gif"
                mouseoverimageurl="../Image/UIPics/Approve2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Return" controltext="return" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Return_C.gif"
                mouseoverimageurl="../image/uipics/Return2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Reject" controltext="reject" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Reject_C.gif"
                mouseoverimageurl="../image/uipics/Reject2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Notify" controltext="notify" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Notify_C.gif"
                mouseoverimageurl="../image/uipics/Notify2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="FlowDelete" controltext="flowdelete" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/FlowDelete_C.gif"
                mouseoverimageurl="../image/uipics/FlowDelete2_C.gif" size="70">
            </infolight:controlitem>
            <infolight:controlitem controlname="Plus" controltext="plus" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Plus_C.gif"
                mouseoverimageurl="../image/uipics/Plus2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Pause" controltext="pause" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Pause_C.gif"
                mouseoverimageurl="../image/uipics/Pause2_C.gif" size="48">
            </infolight:controlitem>
            <infolight:controlitem controlname="Comment" controltext="comment" controltype="Image"
                controlvisible="True" disenableimageurl="" imageurl="../image/uipics/Comment_C.gif"
                mouseoverimageurl="../image/uipics/Comment2_C.gif" size="48">
            </infolight:controlitem>
        </NavControls>
        <FLStates>
            <FLTools:FLWebNavigatorStateItem StateText="Approve" VisibleControls="Approve;Return;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Continue" VisibleControls="Submit;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Inquery" VisibleControls="Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Notify" VisibleControls="Notify;FlowDelete;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Return" VisibleControls="Submit;Reject;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="Submit" VisibleControls="Submit;Notify;Pause" />
            <FLTools:FLWebNavigatorStateItem StateText="None" VisibleControls="" />
            <FLTools:FLWebNavigatorStateItem StateText="Plus" VisibleControls="Approve;Notify;Comment" />
            <FLTools:FLWebNavigatorStateItem StateText="Lock" VisibleControls="Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="FSubmit" VisibleControls="Submit;Notify" />
            <FLTools:FLWebNavigatorStateItem StateText="RSubmit" VisibleControls="Submit;Return;Notify" />
        </FLStates>
        <NavStates>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Initial">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Query;Print;Export"
                statetext="Browsed">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Inserting">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="OK;Cancel;Apply;Abort" statetext="Editing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Applying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="First;Previous;Next;Last;Add;Update;Delete;Apply;Abort;Export"
                statetext="Changing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Querying">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Printing">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="" statetext="Normal">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Add" statetext="Insert">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Update" statetext="Modify">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query" statetext="Inquery">
            </infolight:webnavigatorstateitem>
            <infolight:webnavigatorstateitem enablecontrols="Query;Update" statetext="Prepare">
            </infolight:webnavigatorstateitem>
        </NavStates>
    </FLTools:FLWebNavigator>
    <infolight:webformview id="WebFormView1" runat="server" width="100%" datasourceid="Master"
        layoutcolnum="2" backcolor="Silver" cellpadding="4" forecolor="#333333" bordercolor="Window"
        borderstyle="Groove" borderwidth="2px" captionalign="Top" onitemupdating="WebFormView1_ItemUpdating"
        oniteminserting="WebFormView1_ItemInserting">
        <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <edititemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                    <table class='container_table' cellspacing="0" border="0" >
                        <colgroup>
                            <col width="70" />
                            <col width="200" />
                            <col width="70" />
                            <col width="200" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIptId" runat="server" Text="单据编号:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbptId" Width="100%" runat="server" BackColor="#E0E0E0" ReadOnly="True"
                                    MaxLength="4" Text='<%# Bind("ptId") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="CaptionIApDate" runat="server" Text="申请日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbApDate" Width="100%" runat="server" BackColor="#E0E0E0" ReadOnly="True"
                                    MaxLength="20" Text='<%# String.Format("{0:yyyy-MM-dd}",DataBinder.Eval(Container,"DataItem.ApDate")) %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionempId" runat="server" Text="员工编码:"></asp:Label>
                            </td>
                            <td>
                                <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                    BindingValue='<%# Bind("EmpId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                    DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                    MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                    ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="195px">
                                    <Columns>
                                        <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门" Width="100" />
                                    </Columns>
                                    <ColumnMatch>
                                        <InfoLight:WebColumnMatch DestControlID="tbDepartmentName" SrcField="DepartmentName" />
                                    </ColumnMatch>
                                </InfoLight:WebRefVal>
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="部门名称:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbDepartmentName" BackColor="#E0E0E0" ReadOnly="True" runat="server"
                                    Width="100%" Text='<%# Bind("DepartmentName") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                          
                            
                                </asp:TextBox>



                                <asp:Label ID="CaptionIOutDate" runat="server" Text="出行日期:"></asp:Label>



                            </td>
                            <td class="css_SpecTD">
                                          
                            
<asp:TextBox ID="wdtpServices_PlaneTicketOutDateI2" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowClear:false,readOnly:true})" 
                                    Text='<%# Bind("OutDate", "{0:d}") %>' CssClass="Wdate" Width="100%"/>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIIsRoundTrip" runat="server" Text="是否双程:"></asp:Label>
                            </td>
                            <td>
                                <asp:CheckBox ID="wvbServices_PlaneTicketIsRoundTripI" runat="server" Checked='<%# Bind("IsRoundTrip") %>' />
                                <td>
                                    <asp:Label ID="CaptionIRtnDate" runat="server" Text="回程日期:"></asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="wdtpServices_PlaneTicketRtnDateI" runat="server" 
                                        CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                                        Text='<%# Bind("RtnDate", "{0:d}") %>' Width="100%" />
                                    </asp:textbox>
                                </td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIPreWay" runat="server" Text="出行路线:"></asp:Label>
                            </td>
                            <td class="css_SpecTD" colspan="3">
                                <asp:TextBox ID="tbPreWay" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("PreWay") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionICause" runat="server" Text="出行事由:"></asp:Label>
                            </td>
                            <td class="css_SpecTD" colspan="3">
                                <asp:TextBox ID="tbCause" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("Cause") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIReMark" runat="server" Text="备注:"></asp:Label>
                            </td>
                            <td class="css_SpecTD" colspan="3">
                                <asp:TextBox ID="tbReMark" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("ReMark") %>'></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </edititemtemplate>
        <insertitemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                <table class='container_table' cellspacing="0" border="0" >
                        <colgroup>
                            <col width="70" />
                            <col width="200" />
                            <col width="70" />
                            <col width="200" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIptId" runat="server" Text="单据编号:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbptId" Width="100%" runat="server" BackColor="#E0E0E0" ReadOnly="True"
                                    MaxLength="4" Text='<%# Bind("ptId") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="CaptionIApDate" runat="server" Text="申请日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbApDate" Width="100%" runat="server" BackColor="#E0E0E0" ReadOnly="True"
                                    MaxLength="20" Text='<%# Bind("ApDate") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionempId" runat="server" Text="员工编码:"></asp:Label>
                            </td>
                            <td>
                                <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                    BindingValue='<%# Bind("EmpId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                    DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                    MultiLanguage="False" PostBackButonClick="False" ReadOnly="False" ResxDataSet=""
                                    ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="225px">
                                    <Columns>
                                        <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门" Width="100" />
                                    </Columns>
                                    <ColumnMatch>
                                        <InfoLight:WebColumnMatch DestControlID="tbDepartmentName" SrcField="DepartmentName" />
                                    </ColumnMatch>
                                </InfoLight:WebRefVal>
                            </td>
                            <td>
                                <asp:Label ID="Label1" runat="server" Text="部门名称:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbDepartmentName" BackColor="#E0E0E0" ReadOnly="True" runat="server"
                                    Width="100%" Text='<%# Bind("DepartmentName") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIOutDate" runat="server" Text="出行日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                            
                            
<asp:TextBox ID="wdtpServices_PlaneTicketOutDateI" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d',isShowClear:false,readOnly:true})" 
                                    Text='<%# Bind("OutDate", "{0:d}") %>' CssClass="Wdate" Width="100%"/></asp:TextBox>


                               
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIIsRoundTrip" runat="server" Text="是否双程:"></asp:Label>
                            </td>
                            <td>
                                <asp:CheckBox ID="wvbServices_PlaneTicketIsRoundTripI" runat="server" Checked='<%# Bind("IsRoundTrip") %>' />
                                <td>
                                    <asp:Label ID="CaptionIRtnDate" runat="server" Text="回程日期:"></asp:Label></td>
                                <td>
                                
                                                  
                            
<asp:TextBox ID="wdtpServices_PlaneTicketRtnDateI" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-M-d'})" 
                                        Text='<%# Bind("RtnDate", "{0:d}") %>' CssClass="Wdate" Width="100%"/></asp:TextBox>

                                </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIPreWay" runat="server" Text="出行路线:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbPreWay" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("PreWay") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionICause" runat="server" Text="出行事由:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbCause" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("Cause") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIReMark" runat="server" Text="备注:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbReMark" Width="100%" runat="server" TextMode="MultiLine" Text='<%# Bind("ReMark") %>'></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </insertitemtemplate>
        <fields>
                <InfoLight:FormViewField ControlID="tbptId" FieldName="ptId" />
                <InfoLight:FormViewField ControlID="WebRefVal1" FieldName="EmpId" />
                <InfoLight:FormViewField ControlID="tbApDate" FieldName="ApDate" />
                <InfoLight:FormViewField ControlID="wdtpServices_PlaneTicketOutDateI" FieldName="OutDate" />
                <InfoLight:FormViewField ControlID="tbDepartmentName" FieldName="DepartmentName" />
            </fields>
        <rowstyle backcolor="#EFF3FB" />
        <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" />
        <itemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                   <table class='container_table' cellspacing="0" border="0" >
                        <colgroup>
                            <col width="70" />
                            <col width="200" />
                            <col width="70" />
                            <col width="200" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIptId" runat="server" Text="单据编号:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbptId" Width="100%" runat="server" ReadOnly="True" MaxLength="4"
                                    Text='<%# Bind("ptId") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="CaptionIApDate" runat="server" Text="申请日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbApDate" Width="100%" runat="server" ReadOnly="True" MaxLength="20"
                                    Text='<%# Bind("ApDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionempId" runat="server" Text="员工编码:"></asp:Label>
                            </td>
                            <td>
                                <InfoLight:WebRefVal ID="WebRefVal1" runat="server" AllowAddData="False" BindingText=""
                                    BindingValue='<%# Bind("EmpId") %>' ButtonImageUrl="../Image/refval/RefVal.gif"
                                    DataBindingField="EmployeeId" DataSourceID="WEmp" DataTextField="EmpName" DataValueField="EmployeeID"
                                    MultiLanguage="False" PostBackButonClick="False" ReadOnly="True" ResxDataSet=""
                                    ResxFilePath="" UpdatePanelID="" UseButtonImage="True" Width="200px">
                                    <Columns>
                                        <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职位" Width="100" />
                                        <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门" Width="100" />
                                    </Columns>
                                </InfoLight:WebRefVal>
                            </td>
                            <td>
                                <asp:Label ID="lDepartmentName" runat="server" Text="部门名称:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbDepartmentName" ReadOnly="true" Width="100%" runat="server" Text='<%# Bind("DepartmentName") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIOutDate" runat="server" Text="出行日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbOutDate" Width="100%" ReadOnly="True" runat="server" MaxLength="10"
                                    Text='<%# Bind("OutDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIIsRoundTrip" runat="server" Text="是否双程:"></asp:Label>
                            </td>
                            <td>
                                <asp:CheckBox ID="wvbServices_PlaneTicketIsRoundTripI" Enabled="false" runat="server"
                                    Checked='<%# Bind("IsRoundTrip") %>' />
                            </td>
                            <td>
                                <asp:Label ID="CaptionIRtnDate" runat="server" Text="回程日期:"></asp:Label>
                            </td>
                            <td class="css_SpecTD">
                                <asp:TextBox ID="tbRtnDate" Width="100%" ReadOnly="True" runat="server" MaxLength="10"
                                    Text='<%# Bind("RtnDate","{0:yyyy-MM-dd}") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIPreWay" runat="server" Text="出行路线:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbPreWay" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                    Text='<%# Bind("PreWay") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionICause" runat="server" Text="出行事由:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbCause" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                    Text='<%# Bind("Cause") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIReMark" runat="server" Text="备注:"></asp:Label>
                            </td>
                            <td colspan="3" class="css_SpecTD">
                                <asp:TextBox ID="tbReMark" Width="100%" ReadOnly="True" runat="server" TextMode="MultiLine"
                                    Text='<%# Bind("ReMark") %>'></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </itemtemplate>
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
    </infolight:webformview>
    <infolight:webformview id="WebFormView2" runat="server" width="100%" datasourceid="Master"
        layoutcolnum="2" backcolor="Silver" cellpadding="4" forecolor="#333333" bordercolor="Window"
        borderstyle="Groove" borderwidth="2px" captionalign="Top" onitemcommand="WebFormView2_ItemCommand">
        <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <edititemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                    <table>
                        <colgroup>
                            <col width="70px" />
                            <col width="200px" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIInquirePrice" runat="server" Text="询价:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbInquirePrice" runat="server" MaxLength="8" Style="text-align: right;"
                                    Text='<%# Bind("InquirePrice","{0:#,###.##}") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnSaveInquirePrice" runat="server" Text="确定" CommandName="Save" />
                                <asp:HiddenField ID="tbptId" runat="server" Value='<%# Bind("ptId") %>' />
                            </td>
                            <td>
                                <asp:Button ID="btnCancelInquirePrice" runat="server" Text="取消" CommandName="Cancel" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </edititemtemplate>
        <rowstyle backcolor="#EFF3FB" />
        <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" />
        <itemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                    <table>
                        <colgroup>
                            <col width="70" />
                            <col width="200" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionIInquirePrice" runat="server" Text="询价:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbInquirePrice" runat="server" Style="text-align: right;" ReadOnly="true"
                                    MaxLength="8" Text='<%# Bind("InquirePrice","{0:#,###.##}") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnEditInquirePrice" runat="server" Text="编辑" CommandName="Edit" />
                            </td>
                            <td>
                                <asp:Button ID="btnSubmitInquirePrice" runat="server" Text="提交询价" OnClick="btnSubmitInquirePrice_Click" />
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </itemtemplate>
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <insertrowstyle backcolor="DarkTurquoise" />
    </infolight:webformview>
    <infolight:webformview id="WebFormView3" runat="server" width="100%" datasourceid="Master"
        layoutcolnum="2" backcolor="Silver" cellpadding="4" bordercolor="Window" borderstyle="Groove"
        captionalign="Top" onitemcommand="WebFormView3_ItemCommand">
        <footerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <fields>
                <InfoLight:FormViewField ControlID="tbptId" FieldName="ptId" />
            </fields>
        <edititemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                    <table>
                        <colgroup>
                            <col width="70px" />
                            <col width="200px" />
                            <col width="70px" />
                            <col width="200px" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionITicketPrice" runat="server" Text="实际票价:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbTicketPrice" runat="server" Style="text-align: right;" MaxLength="8"
                                    Text='<%# Bind("TicketPrice","{0:#,###.##}") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="CaptionITicketAgent" runat="server" Text="机票代理:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbTicketAgent" runat="server" MaxLength="50" Text='<%# Bind("TicketAgent") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnSaveTicketPrice" runat="server" Text="确定" CommandName="Save" />
                                <asp:HiddenField ID="tbptId" runat="server" Value='<%# Bind("ptId") %>' />
                            </td>
                            <td>
                                <asp:Button ID="btnCancelTicketPrice" runat="server" Text="取消" CommandName="Cancel" />
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </edititemtemplate>
        <rowstyle backcolor="#EFF3FB" />
        <insertitemtemplate>
                &nbsp;
            </insertitemtemplate>
        <pagerstyle backcolor="#2461BF" forecolor="White" horizontalalign="Center" />
        <itemtemplate>
                <fieldset>
                    <legend>机票申请：</legend>
                    <table>
                        <colgroup>
                            <col width="70" />
                            <col width="200" />
                            <col width="70" />
                            <col width="200" />
                        </colgroup>
                        <tr>
                            <td>
                                <asp:Label ID="CaptionITicketPrice" runat="server" Text="实际票价:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbTicketPrice" runat="server" ReadOnly="true" Style="text-align: right;"
                                    MaxLength="8" Text='<%# Bind("TicketPrice","{0:#,###.##}") %>'></asp:TextBox>
                            </td>
                            <td>
                                <asp:Label ID="CaptionITicketAgent" runat="server" Text="机票代理:"></asp:Label>
                            </td>
                            <td>
                                <asp:TextBox ID="tbTicketAgent" runat="server" ReadOnly="true" MaxLength="50" Text='<%# Bind("TicketAgent") %>'></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Button ID="btnEditTicketPrice" runat="server" Text="编辑" CommandName="Edit" />
                            </td>
                            <td>
                                <asp:Button ID="btnSubmitTicketPrice" runat="server" Text="提交票价" OnClick="btnSubmitTicketPrice_Click" />
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </fieldset>
            </itemtemplate>
        <headerstyle backcolor="#507CD1" font-bold="True" forecolor="White" />
        <insertrowstyle backcolor="DarkTurquoise" />
    </infolight:webformview>
</asp:Content>
